package cn.chi.org.query;

import lombok.Data;

/**
 * 条件类
 */
@Data
public class DepartmentQuery {
    private Integer currentPage=1;
    private Integer pageSize=10;
    /**
     * 索引关键字
     */
    private String name;

    /**
     * 计算当前页索引
     * @return
     */
    public Integer getStartPage(){
        return (this.currentPage-1)*pageSize;
    }
}
